import java.io.File;


public class RunFPGrowth {

	static double[] percentageMinSups = { 0.4 , 0.5 , 0.6 , 0.7 , 0.8 , 0.9};
	static final File pathToFolder = new File(System.getProperty("user.dir") + "/data/Session1/");
	
	public static void main(String[] args) throws Exception {
		for (final File fileEntry : pathToFolder.listFiles()) {
			if (!fileEntry.getName().endsWith(".arff"))	
				continue;
			for(double minSup: percentageMinSups){
				System.out.println("***" + fileEntry.getName() + " :: " + minSup + "***");
				FPGrowthAlgorithm fpgrowth = new FPGrowthAlgorithm(minSup, minSup, 0.0, 10, fileEntry.getAbsolutePath());
				fpgrowth.compute();	
			}
		}
	}

}
